package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.entity.state.BaseEnum;
import com.lh.common.entity.state.STATE;
import com.lh.common.enums.AfterSaleOrderTypeEnum;
import com.lh.common.enums.ShopTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * ovmal_order_shop:订单购买商品表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_order_shop")
@Alias("orderShop")
@Data
public class OrderShop implements Serializable {
    @ApiModelProperty(value = "")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "订单编号")
    @Column(name = "order_item")
    private String orderItem;

    @ApiModelProperty(value = "商品id")
    @Column(name = "sid")
    private Long sid;

    @ApiModelProperty(value = "商品名称")
    @Column(name = "shop_name")
    private String shopName;

    @ApiModelProperty(value = "商品图片")
    @Column(name = "shop_img")
    private String shopImg;

    @ApiModelProperty(value = "商品价格")
    @Column(name = "price")
    private BigDecimal price;

    @ApiModelProperty(value = "购买数量")
    @Column(name = "num")
    private Integer num;

    @ApiModelProperty(value = "商品总额")
    @Column(name = "sum")
    private BigDecimal sum;

    @ApiModelProperty(value = "运费")
    @Column(name = "freight")
    private BigDecimal freight;

    @ApiModelProperty(value = "实付款")
    @Column(name = "pay_price")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "属性")
    @Column(name = "property")
    private String property;

    @ApiModelProperty(value = "排序")
    @Column(name = "sort")
    private Integer sort;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * ovmal_order_shop
     */
    private static final long serialVersionUID = 1L;
}
